﻿using Coldairarrow.Business.Backstage.Valickets;
using Coldairarrow.Entity.Backstage.Valickets;
using Coldairarrow.Util;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Api.Controllers.Backstage.Valickets
{
    [Route("/Frontstage/Valickets/[controller]/[action]")]
    public class BS_GetVailTicketController : BaseApiController
    {
        #region DI

        public BS_GetVailTicketController(IBS_VailTicketBusiness bS_VailTicketBus)
        {
            _bS_VailTicketBus = bS_VailTicketBus;
        }

        IBS_VailTicketBusiness _bS_VailTicketBus { get; }

        #endregion

        #region 获取
        /// <summary>
        /// 个人中心——获取可兑换代金券列表
        /// </summary>
        /// <returns></returns>
        [NoCheckJWT]
        [HttpPost]
        public  List<BS_VailTicket> GetsTicketList()
        {
            return  _bS_VailTicketBus.GetTicketList();
        }

        #endregion
    }
}